package mvc.view {
	import flash.display.Sprite;

	import mvc.view.components.StageSprite;

	import org.puremvc.as3.patterns.mediator.Mediator;

	public class StageMediator extends Mediator {
		public static const NAME:String = "StageMediator";


		public function StageMediator(viewComponent:Object) {
			super(NAME, viewComponent);
		}

		public function get stageSprite():StageSprite {
			return viewComponent as StageSprite;
		}

		public function addLayer(sprite:Sprite, name:String, z:int):Sprite {
			return stageSprite.addLayer(sprite, name, z);
		}

	}
}
